256b33a98c6dea69d25075f3285e787705d8a55b,applications/order/src/org/ofbiz/order/order/OrderServices.java,OrderServices,createPaymentFromPreference,#DispatchContext#Map#,3480

Before Change


            paymentParams.put("paymentTypeId", "CUSTOMER_PAYMENT");
            paymentParams.put("paymentMethodTypeId", orderPaymentPreference.getString("paymentMethodTypeId"));
            paymentParams.put("paymentPreferenceId", orderPaymentPreference.getString("orderPaymentPreferenceId"));
            paymentParams.put("amount", orderPaymentPreference.getDouble("maxAmount"));
            paymentParams.put("statusId", "PMNT_RECEIVED");
            paymentParams.put("effectiveDate", UtilDateTime.nowTimestamp());
            paymentParams.put("partyIdFrom", billToParty.getString("partyId"));

After Change



            // create the payment
            Map paymentParams = new HashMap();
            double maxAmount = orderPaymentPreference.getDouble("maxAmount").doubleValue();
            if (maxAmount > 0.0) {            
                paymentParams.put("paymentTypeId", "CUSTOMER_PAYMENT");
                paymentParams.put("paymentMethodTypeId", orderPaymentPreference.getString("paymentMethodTypeId"));
                paymentParams.put("paymentPreferenceId", orderPaymentPreference.getString("orderPaymentPreferenceId"));